package com.cn.service;

import com.cn.dao.UserInfoMapper;
import com.cn.model.UserInfo;
import com.cn.model.UserInfoExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author jiangwang
 * @Created by 2020/10/14 16:15
 * @Description: TODO
 */
@Service
public class UserService
{

    @Autowired
    private UserInfoMapper userInfoMapper;

    public List<UserInfo> getList()
    {
        UserInfoExample example = new UserInfoExample();
        example.createCriteria().andDepartIdEqualTo("1");
        return userInfoMapper.selectByExample(example);
    }

}
